package com.bdth.mixapi.api.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdth.mixapi.api.entity.Area;
import com.bdth.mixapi.api.mapper.AreaMapper;
import com.bdth.mixapi.api.service.AreaService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LGP
 * @since 2019-04-11
 */
@Service
public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements AreaService {

    @Override
    public List<Area> listAll() {
        QueryWrapper<Area> queryWrapper = new QueryWrapper<>();
        queryWrapper.orderByDesc("sepueunce");
        List<Area> areaList = list(queryWrapper);
        return areaList;
    }
}
